package com.sailors.common.task.provider.application.event.publisher;

import com.sailors.common.task.provider.application.event.event.FileTaskCreateEvent;
import com.sailors.common.task.provider.domian.model.entity.FileTaskEntity;
import com.sailors.common.task.provider.infra.design.common.util.BeanHelper;

/**
 * File task event publisher
 *
 * @description:
 * @author: cyj
 * @date 2023 -02-22 00:19:41
 */
public class FileTaskEventPublisher {

    public static void pushEvent(FileTaskEntity fileTaskEntity) {
        BeanHelper.getApplicationContext().publishEvent(new FileTaskCreateEvent(fileTaskEntity));
    }
}
